﻿<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	xmlns:local="clr-namespace:Waaahsabi.Controls.TheGame;assembly=Waaahsabi.Controls.TheGame"
	mc:Ignorable="d"
	x:Class="TheGameClient.IncompatiblePlatform"
	d:DesignWidth="933" d:DesignHeight="665">
	<UserControl.Resources>
		<Storyboard x:Name="DistortionAnimation" RepeatBehavior="Forever" AutoReverse="False">
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Effect).(TimedDistortEffect.WaveStrength)" Storyboard.TargetName="grid">
				<SplineDoubleKeyFrame KeyTime="0" Value="-0.1"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="0.1"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1.2" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1.9" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:2" Value="-0.3"/>
				<EasingDoubleKeyFrame KeyTime="0:0:2.2" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:3" Value="0"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Effect).(TimedDistortEffect.Frequency)" Storyboard.TargetName="grid">
				<EasingDoubleKeyFrame KeyTime="0" Value="-5"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="10"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1.2" Value="10"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1.9" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:2" Value="10"/>
				<EasingDoubleKeyFrame KeyTime="0:0:2.1" Value="20"/>
				<EasingDoubleKeyFrame KeyTime="0:0:2.2" Value="0"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Effect).(BlurEffect.Radius)" Storyboard.TargetName="border">
				<EasingDoubleKeyFrame KeyTime="0" Value="5"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="2"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="5"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1.2" Value="2"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1.9" Value="2"/>
				<EasingDoubleKeyFrame KeyTime="0:0:2" Value="5"/>
				<EasingDoubleKeyFrame KeyTime="0:0:2.1" Value="5"/>
				<EasingDoubleKeyFrame KeyTime="0:0:2.2" Value="2"/>
				<EasingDoubleKeyFrame KeyTime="0:0:3" Value="2"/>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
	</UserControl.Resources>

	<Grid x:Name="LayoutRoot">
		<Border x:Name="border" BorderThickness="3" CornerRadius="20" BorderBrush="Black" Width="640" Height="480">
			<Border.Background>
				<RadialGradientBrush RadiusY="0.812" GradientOrigin="0.5,0.945">
					<GradientStop Color="{StaticResource TheGameDarkRed}" Offset="1"/>
					<GradientStop Color="{StaticResource TheGameBrightRed}"/>
				</RadialGradientBrush>
			</Border.Background>
			<Border.Effect>
				<BlurEffect Radius="2"/>
			</Border.Effect>
			<Border x:Name="grid" Background="#02FFFFFF">
				<Border.Effect>
					<local:TimedDistortEffect/>
				</Border.Effect>
				<StackPanel VerticalAlignment="Center" Margin="0" >
					<TextBlock HorizontalAlignment="Center" TextWrapping="Wrap" Text="OMGWTFBBQ_PLATFORM_ERROR #0001!" VerticalAlignment="Top" Foreground="#FFFFDE00" FontSize="32" FontFamily="Courier New" Margin="0,0,0,10" Effect="{StaticResource DefaultGlowWhite}" FontWeight="Bold"/>
					<TextBlock TextWrapping="Wrap" VerticalAlignment="Top" Foreground="#FFFFF194" Width="527" Margin="0,0,0,10" TextAlignment="Center" Effect="{StaticResource DefaultGlowWhite}"><Run Text="Oh. My. God."/><LineBreak/><Run Text="I think you're "/><Run FontWeight="Bold" Text="royally "/><Run Text="screwed. "/><LineBreak/><Run Text="(And the hellish appearance of this screen is emphasizing this)"/><LineBreak/><Run Text="Incidentally, you have a &quot;platform&quot; that doesn't support "/><Run FontWeight="Bold" Text="Silverlight 4" TextDecorations="Underline"/><Run Text=". "/><LineBreak/><Run Text="Well, too bad. Go get a real OS to play this game."/><LineBreak/><Run/><LineBreak/><Run Text="And don't forget to rant about that on blogs, forums and the comments page of the platform's vendor/maker/creator/community/chaos.">
							<Run.Foreground>
								<SolidColorBrush Color="White">
									<SolidColorBrush.RelativeTransform>
										<MatrixTransform Matrix="Identity"/>
									</SolidColorBrush.RelativeTransform>
									<SolidColorBrush.Transform>
										<MatrixTransform Matrix="Identity"/>
									</SolidColorBrush.Transform>
								</SolidColorBrush>
							</Run.Foreground>
						</Run><LineBreak/><Run/><LineBreak/><Run Text="kthxbai."/></TextBlock>
				</StackPanel>
			</Border>
		</Border>
	</Grid>
</UserControl>